import QtQuick 2.0
import QtQuick.Particles 2.0

//粒子参数
Rectangle {
    id: root;

    color: "black";

    //粒子系统
    ParticleSystem {
        id: particle;
    }

    //粒子发射器
    Emitter {
        id: emitter;

        anchors.centerIn: parent;
        width: 480;
        height: 480;
        system: particle;
        emitRate: 40;
        lifeSpan: 1000;
        lifeSpanVariation: 500;
        size: 16;
        endSize: 32;

        Tracer { color: 'green'; }
    }

    ImageParticle {
        source: "Images/png/star.png";
        system: particle;
        color: "#FFD700";
        colorVariation: 0.6;
        rotation: 15;
        rotationVariation: 5;
        rotationVelocity: 45;
        rotationVelocityVariation: 15;
        entryEffect: ImageParticle.Scale;
    }
}
